headerbar: Disconnect signal handlers when children are removed
authorKjell Ahlstedt <kjellahlstedt@gmail.com>
Wed, 13 Nov 2019 14:20:34 +0000 (15:20 +0100)
committerTimm Bäder <mail@baedert.org>
Thu, 14 Nov 2019 08:15:58 +0000 (09:15 +0100)
commitd572b5d94c1b83325c523c639c4eb929a1945a4d
tree04374c59572c5572e0c85bc12221c75462f80d5d
parentc2306d3ba62019d3dd69810b575490a8aa3df5e0
headerbar: Disconnect signal handlers when children are removed

The signal handler that calls notify_child_cb() is disconnected
from a child widget before the child is removed from the header bar.
gtk_header_bar_dispose() chains up before destroying the start and end
boxes, thus avoiding calls to notify_child_cb() after start_box and
end_box have been cleared.

Fixes #2246
gtk/gtkheaderbar.c